﻿#ifndef WORKORDER_H
#define WORKORDER_H
#include <QDir>
#include <QList>
#include <QSettings>
#include <QWidget>

/* 工单号管理类 */
class WorkOrder
{
public:
    WorkOrder();
    QVector<QStringList> getData(QWidget *obj=nullptr);
    bool isInWorkOrder(QString str_search, QWidget *obj=nullptr);
    QStringList getWorkList();
    QString getInfor(QString key, QString workPathTmp="");
    void setInfor(QString key, QString data, QString workPathTmp="");
    void setWorkPath(QString workPathTmp);
    void log(QString fileName, const QSet<int> &data);
    QSet<int> getLog(QString fileName);
    bool isInLog(QString fileName, int row);

private:
    QString workPath;
};

#endif // WORKORDER_H
